﻿@model Web.Message

@{
    ViewBag.Title = "Details";
}

@Html.Partial("_MessageMenuBar")

<h2>Message</h2>

<fieldset>
    <legend>Message</legend>

    <div class="display-label">Title</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.title)
    </div>

    <div class="display-label">Message</div>
    <div class="display-field">
        @Html.TextAreaFor(model => model.text, new { disabled = true })
    </div>

    <div class="display-label">sender</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Usersender.name)
    </div>

    <div class="display-label">Time sent</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.timesent)
    </div>

</fieldset>
<p>
    @Html.ActionLink("Delete", "Delete", new { id=Model.id }) |
    @Html.ActionLink("Back to List", "Index")
</p>
